/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package biz;

import dao.NewsEventDAO;
import entity.NewsEvent;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author Young Ran
 */
public class NewsEventBO {
    
    //DISPLAY NEWSEVENT:
    public ArrayList<NewsEvent> getAllNewsEvent() throws SQLException{
        return new NewsEventDAO().getAllNewsEvent();
    }
    public void addNewsEvent(NewsEvent item) throws SQLException
    {
        new NewsEventDAO().addNewsEvent(item);
    }
    public void editNewsEvent(NewsEvent item) throws SQLException
    {
        new NewsEventDAO().editNewsEvent(item);
    }
    public void deleteNewsEvent(int id) throws SQLException
    {
        new NewsEventDAO().deleteNewsEvent(id);
    }
}
